package com.example.mansystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.mansystem.Annotation.DataBindErrorTips;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Positive;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("Instrument")
public class InstrumentDO {
    @TableId(value = "YQBH",type = IdType.AUTO)
    @JsonProperty(value = "YQBH")
    private int YQBH;
    @JsonProperty(value = "LC")
    private String LC;
    @JsonProperty(value = "FJM")
    private String FJM;
    @DataBindErrorTips("数量格式不正确")
    @JsonProperty(value = "SL")
    @Positive
    private int SL;
    @JsonProperty(value = "YQMC")
    private String YQMC;
    private String departmentId;
    private String placeId;
    @JsonProperty(value = "KFKSSJ")
    private String KFKSSJ;
    @JsonProperty(value = "KFJSSJ")
    private String KFJSSJ;
    @DataBindErrorTips("金额格式不正确")
    @JsonProperty(value = "JE")
    private int JE;
    @JsonProperty(value = "JFKM")
    private String JFKM;
    @JsonProperty(value = "XZ")
    private String XZ;
    @JsonProperty(value = "SYFX")
    private String SYFX;
    @JsonProperty(value = "CJ")
    private String CJ;
    @JsonProperty(value = "GG")
    private String GG;
    @JsonProperty(value = "GLR")
    @DataBindErrorTips("管理人格式不正确")
    private int GLR;
    @JsonProperty(value = "SFJK")
    private int SFJK;
//    @JsonProperty(value = "SFMS")
//    private int SFMS;
    @JsonProperty(value = "HGJGJZQ")
    private String HGJGJZQ;
    @JsonProperty(value = "BGRQ")
    private String BGRQ;
//    @JsonProperty(value = "MSZH")
//    private String MSZH;
//    @JsonProperty(value = "BGDH")
//    private String BGDH;
    @JsonProperty(value = "ZYGN")
    private String ZYGN;
    @JsonProperty(value = "JSZB")
    private String JSZB;
//    @JsonProperty(value = "XJCD")
//    private String XJCD;
//    @JsonProperty(value = "DXCG")
//    private String DXCG;
    @JsonProperty(value = "XKLY")
    private String XKLY;
    @JsonProperty(value = "GXMS")
    private String GXMS;
    @JsonProperty(value = "YPYQ")
    private String YPYQ;
    @JsonProperty(value = "YYSM")
    private String YYSM;
    @JsonProperty(value = "CSSM")
    private String CSSM;
    @JsonProperty(value = "GZRQ")
    private String GZRQ;
    @JsonProperty(value = "SFBZ")
    @DataBindErrorTips("收费标准格式不正确")
    private int SFBZ;
    @JsonProperty(value = "PL")
    private int PL;
    @JsonProperty(value = "LXFS")
    private String LXFS;
    @JsonProperty(value = "BZ")
    private String BZ;
    private String imgUrl;
    private String modelUrl;
    private String registerName;
    private String registerTime;

    private int state;
}
